﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication8
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
            
             result = DialogResult.Cancel;
        }
        public DialogResult result;

        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "")
                MessageBox.Show("请输入数据集名称");
            else
            {
                DialogResult Result = MessageBox.Show("确定是这个名字吗", "来自帅比的警告", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
                if (Result == DialogResult.Yes)
                {
                    result = DialogResult.OK;
                    this.Close();
                }
            }
        }
    }
}
